package com.wangzhixuan.model.vo;

import java.io.Serializable;

import com.wangzhixuan.commons.constant.ApiCode;
import com.wangzhixuan.commons.scan.MyException;

public class OpearteVo implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 81871376176614047L;
	private Integer userId;
	private Integer workId;
	private Integer ronId;
	private Integer ronOperationState;
	
	public void checekParam() throws MyException{
		if(this.userId==null){
			 throw new MyException(ApiCode.CODE_501, "请重新登录");
		}
		if(this.workId==null){
			 throw new MyException(ApiCode.CODE_501, "网络异常，请稍后重试");
		}
		if(this.ronId==null){
			 throw new MyException(ApiCode.CODE_501, "网络异常，请稍后重试");
		}
		if (this.ronOperationState==null) {
			throw new MyException(ApiCode.CODE_501, "网络异常，请稍后重试");
        }
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Integer getWorkId() {
		return workId;
	}

	public void setWorkId(Integer workId) {
		this.workId = workId;
	}


	public Integer getRonId() {
		return ronId;
	}

	public void setRonId(Integer ronId) {
		this.ronId = ronId;
	}

	public Integer getRonOperationState() {
		return ronOperationState;
	}

	public void setRonOperationState(Integer ronOperationState) {
		this.ronOperationState = ronOperationState;
	}



}
